<template>
  <div class="complaint-info">
    <el-scrollbar class="scroll-wrapper">
      <div class="content">
        <div class="section-title">基本信息</div>
        <div class="list-con">
          <div class="li">
            <div class="li-key">方案名称</div>
            <div class="li-val">{{ comInfo.planName }}</div>
          </div>
          <div class="li">
            <div class="li-key">方案详情</div>
            <div class="li-val">
              <div v-html="comInfo.planContent"></div>
            </div>
          </div>
          <div class="li">
            <div class="li-key">关联政策</div>
            <div class="li-val" v-if="comInfo.relPlanList && comInfo.relPlanList.length">
              <p class="p-list" v-for="(item, index) in comInfo.relPlanList" :key="item.id">
                {{ index + 1 }}、{{ item.policyName }}
              </p>
            </div>
          </div>
          <div class="li">
            <div class="li-key">匹配算法</div>
            <div class="li-val">{{ comInfo.algorithmName }}</div>
          </div>
          <div class="li" v-if="false">
            <div class="li-key">附件信息</div>
            <div class="li-val"><UploadPreview :fileList="[]" :showDelete="false" layout="list"></UploadPreview></div>
          </div>
        </div>
      </div>
    </el-scrollbar>
  </div>
</template>

<script>
import UploadPreview from '@com/UploadPreview'
export default {
  components: { UploadPreview },
  props: {
    comInfo: {
      type: Object,
      default: () => {},
    },
  },
  data() {
    return {
      // USER_TYPE_PERSON: BBCS_MSG_USER_TYPE.person,
    }
  },
  computed: {},
  filters: {},
  created() {},
  methods: {},
}
</script>

<style lang="scss" scoped>
@import '@styles/detailsTable.scss';
.complaint-info {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  .scroll-wrapper {
    flex: 1;
  }
  .content {
    padding: 20px;
    .section-title {
      font-size: 16px;
      color: #333;
      font-weight: bold;
      margin-bottom: 15px;
      padding-left: 15px;
      border-left: 3px solid #3b93f7;
    }
  }
}
</style>
